"""
# -*- coding: utf-8 -*-
Time    : 2025/7/22 下午6:24
Author  : Micah
File    : test_fixture_mark_usefixtures.py
Function:
"""
import pytest


@pytest.fixture(scope="function")
def login():
    print("\n登录")


@pytest.mark.usefixtures("login")
def test_search():
    print("\n搜索")


def test_cakan():
    print("\n不登录就看")


@pytest.mark.usefixtures("login")
def test_cart():
    print("\n登录，查看购物车")


@pytest.mark.skipif( reason="不想退出")
def test_exit():
    print("\n退出")
